/*
 * Copyright (c) 2018-2999 九五云信息科技有限公司 All rights reserved.
 *
 * https://www.gz-yami.com/
 *
 */

package com.yami.shop.sys.comment.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yami.shop.bean.model.ShopDetail;
import com.yami.shop.sys.comment.model.ShopEmployee;

/**
 * 商家端用户
 * @date 2021-03-01 17:42:09
 */
public interface ShopEmployeeService extends IService<ShopEmployee> {

    ShopEmployee getShopEmployeeById(Long employeeId);

    Boolean updatePasswordByEmployeeId(Long employeeId, String newPassword);

    Boolean saveUserAndUserRole(ShopEmployee shopEmployee);

    ShopEmployee getByUserName(String username);

    Boolean updateUserAndUserRole(ShopEmployee shopEmployee);

    int checkUserName(Long shopId, String mobile);

    Boolean updatePasswordAndUserName(ShopEmployee shopEmployee);

    Boolean updatePassword(Long employeeId, String username, String newPassword);

    Boolean updateUserNameAndPassword(ShopDetail shopDetail);

    Boolean updatePasswordByUserName(String mobile, String newPassword);
        /**
     * 根据用户名查找匹配email或mobile的员工信息
     * @param username 用户名（可能是邮箱或手机号）
     * @return 匹配的员工信息
     */
//    ShopEmployee getByUsernameOrEmailOrMobile(String username);

}
